import Vue from 'vue'
import Vuex from 'vuex'
import state from '@/store/state.js'
import getters from '@/store/getters.js'
import mutations from '@/store/mutations.js'
import actions from '@/store/actions.js'

Vue.use(Vuex)
const store = new Vuex.Store({
	//数据
	state:state,
	//读取数据 相当于计算属性
	getters:getters,
	//同步写
	mutations:mutations,
	//异步写
	actions:actions
})
export default store